<template>
  <div id="bottom">
    <van-tabbar v-model="flag">
      <van-tabbar-item to="/" icon="home-o">首页</van-tabbar-item>
      <van-tabbar-item to="/users" icon="friends-o">用户</van-tabbar-item>
      <van-tabbar-item icon="gold-coin-o">交易</van-tabbar-item>
      <van-tabbar-item to="/mine" icon="user-o">我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
export default {
  props: { active: Number },
  data() {
    return {
      flag: this.active,
    };
  },
};
</script>

<style>
</style>